package com.shyroke.daydayzhuanapi.mapper;

import com.shyroke.daydayzhuanapi.dto.AdminProjectPartTypeDto;
import com.shyroke.daydayzhuanapi.entity.ProjectPartTypeEntity;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ProjectPartTypeMapper {
    @Autowired
    private ModelMapper modelMapper;

    public AdminProjectPartTypeDto entityToAdminDto(ProjectPartTypeEntity entity) {
        return modelMapper.map(entity, AdminProjectPartTypeDto.class);
    }
}
